Skip navigation links
com.timesten.jdbc.xa
Class TimesTenXADataSource
java.lang.Object
com.timesten.jdbc.JdbcOdbcObject
com.timesten.jdbc.TimesTenDriverBase
com.timesten.jdbc.TimesTenDataSource
com.timesten.jdbc.xa.TimesTenXADataSource
- All Implemented Interfaces:
- java.io.Serializable, java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource, javax.sql.XADataSource
-
public class TimesTenXADataSource
- extends TimesTenDataSource
- implements javax.sql.XADataSource, java.io.Serializable
Implements the javax.sql.XADataSource interface.
- See Also:
- Serialized Form
Method Summary |
javax.sql.XAConnection |
getXAConnection()
This method is a required part of the XADataSource interface. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user, java.lang.String password)
This method is a required part of the XADataSource interface. |
Methods inherited from class com.timesten.jdbc.TimesTenDataSource |
getConnection, getConnection, getDescription, getLoginTimeout, getLogWriter, getOraclePassword, getPassword, getUrl, getUser, isWrapperFor, setDescription, setLoginTimeout, setLogWriter, setOraclePassword, setPassword, setUrl, setUser, unwrap |
Methods inherited from class com.timesten.jdbc.TimesTenDriverBase |
getProtocol, getSubName, getSubProtocol, getSubProtocolType, isCSConnection, isDirectConnection |
Methods inherited from class com.timesten.jdbc.JdbcOdbcObject |
BytesToChars, CharsToBytes, CharsToBytes, hexPad, hexPairToInt, hexStringToByteArray, isConnectionBroken, toHex |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
TimesTenXADataSource
public TimesTenXADataSource()
- Creates new XADataSource. Currently does nothing because the superclass TimesTenDataSource does everything necessary.
getXAConnection
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
- This method is a required part of the
XADataSource
interface. Attempts to establish a physical database connection that can *be used in a distributed transaction.
-
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
-
- Returns:
- an
XAConnection
object, which represents a physical connection to a data source, that can be used in a distributed transaction
- Throws:
java.sql.SQLException
- if a database access error occurs
getXAConnection
public javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- This method is a required part of the
XADataSource
interface. Attempts to establish a physical database connection, using the given user name and password. The connection that is returned is one that can be used in a distributed transaction.
-
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
-
- Parameters:
user
- the database user on whose behalf the connection is being made
password
- the user's password
- Returns:
- an XAConnection object, which represents a physical connection to a data source, that can be used in a distributed transaction
- Throws:
java.sql.SQLException
- if a database access error occurs
Skip navigation links
Copyright © 1999, 2010, Oracle and/or its affiliates. All rights reserved.